<template>
  <router-view v-slot="{ Component }" :key="route.path + route.query.id">
    <transition name="fade">
      <component :is="Component" />
    </transition>
  </router-view>
</template>


<script setup lang="ts">
import { useRoute } from 'vue-router'
const route = useRoute()

</script>

<script lang="ts">
export default {
  name: 'OrderMain',
}
</script>

<style scoped>
.fade-enter-from {
  opacity: 0;
  transform: scale(0);
}

.fade-enter-active {
  transition: all 0.3s;
}

.fade-enter-to {
  opacity: 1;
  transform: scale(1);
}
</style>